﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddPeriodoBlack.aspx.cs" Inherits="NewTierra.Pages.AddPeriodoBlack" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.8.3.js" type="text/javascript"></script>
  <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js" type="text/javascript"></script>


    <link href="../../Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />

     <script language="javascript" type="text/javascript">

         jQuery(function ($) {
             $.datepicker.regional['pt-BR'] = {
                 closeText: 'Fechar',
                 prevText: '&#x3c;Anterior',
                 nextText: 'Pr&oacute;ximo&#x3e;',
                 currentText: 'Hoje',
                 monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
                'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                 monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
                'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                 dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                 dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                 dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                 weekHeader: 'Sm',
                 dateFormat: 'dd/mm/yy',
                 firstDay: 0,
                 isRTL: false,
                 showMonthAfterYear: false,
                 yearSuffix: ''
             };
             $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
         });

         $(function () {
             $("#from").datepicker({
                 defaultDate: "+1w",
                 changeMonth: true,
                 numberOfMonths: 1,
                 onClose: function (selectedDate) {
                     $("#to").datepicker("option", "minDate", selectedDate);
                 }
             });
             $("#to").datepicker({
                 defaultDate: "+1w",
                 changeMonth: true,
                 numberOfMonths: 1,
                 onClose: function (selectedDate) {
                     $("#from").datepicker("option", "maxDate", selectedDate);
                 }
             });
         });

    </script>

    <title></title>
    <style type="text/css">
        #body   
       {
         background-color:White;
         font-size: .80em;
         font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
         margin: 0px;
         padding: 0px;
            width: 391px;
            height: 320px;
        }
        #AddPeriodoBlack
        {
            width: 381px;
            padding: 10px;
            height: 310px;
        }
        #AddPeriodoBlack .Datas
        {
            width: 168px;
            float: left;
        }
        #AddPeriodoBlack .Filtros
        {
            width: 164px;
            float: left;
            height: 89px;
        }
    </style>
</head>
<body id="body">
    <form id="form1" runat="server">
   
  
    <div id="AddPeriodoBlack">

        <fieldset style="width: 375px; height: 303px;">
            <legend>Cadastrar Períodos Blackout</legend>
        
      <div class="Datas">
        <asp:Label ID="lblDataFromTXT" runat="server" Text="Data From" /><br />
        <asp:TextBox ID="from" runat="server" Width="100px" MaxLength="10"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="from" ErrorMessage="*" 
            ToolTip="Campo requerido." ValidationGroup="Salvar">*</asp:RequiredFieldValidator>
        <br />

        <asp:Label ID="lblDataToTXT" runat="server" Text="Data To" /><br />
        <asp:TextBox ID="to" runat="server" Width="100px" MaxLength="10"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="to" ErrorMessage="*"
            ToolTip="Campo requerido." ValidationGroup="Salvar">*</asp:RequiredFieldValidator>
        <br />

      </div>

      <div class="Filtros">

        <asp:Label ID="lblMercadoTXT" runat="server" Text="Mercado" /><br />
        <asp:DropDownList ID="DropMercado" runat="server">
        </asp:DropDownList>
        <br />

        <asp:Label ID="lblBaseTarifariaTXT" runat="server" Text="Base Tarifária" /><br />
        <asp:DropDownList ID="DropBaseTarifaria" runat="server">
        </asp:DropDownList>
        <br />
     </div>


        <asp:Label ID="lblObservacaoTXT" runat="server" Text="Observação" /><br />
        <asp:TextBox ID="txtObs" runat="server" Height="74px" TextMode="MultiLine" Width="310px" MaxLength="100"></asp:TextBox>
        <br /><br />

        <asp:Label ID="lblSupplierTXT" runat="server" Text="Supplier:" /> &nbsp
        <asp:Label ID="lblSupplier" runat="server" Font-Size="Small" Text="Supplier"></asp:Label>
          
        <br /><br />
        <asp:Button ID="btnSalvarPeriodo" CssClass="btnsGeral" runat="server" Text="Salvar" ValidationGroup="Salvar" OnClick="CadastrarPeriodoBlack" />
        &nbsp;<asp:Button ID="btnLimpar" CssClass="btnsGeral" runat="server" Text="Fechar" OnClientClick="window.close();" />
        <br />

        <asp:Label ID="lblMsgAddPeriodo" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label>

        
        </fieldset>
    </div>


    </form>
</body>
</html>
